package org.dromara.system.domain.vo;

import java.math.BigDecimal;
import org.dromara.system.domain.ZtVip;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * VIP视图对象 zt_vip
 *
 * @author Lion Li
 * @date 2024-06-25
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = ZtVip.class)
public class ZtVipVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 会员名称
     */
    @ExcelProperty(value = "会员名称")
    private String name;

    /**
     * 有效期（天）
     */
    @ExcelProperty(value = "有效期(天)", converter = ExcelDictConvert.class)
    private Long termOfValidity;

    /**
     * 原价
     */
    @ExcelProperty(value = "原价")
    private BigDecimal originalPrice;

    /**
     * 优惠价
     */
    @ExcelProperty(value = "优惠价")
    private BigDecimal specialPrice;

    /**
     * 是否开启（Y：是，N：否）
     */
    @ExcelProperty(value = "是否开启", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "Y=是,N=否")
    private String status;

    /**
     * 排序
     */
    @ExcelProperty(value = "排序")
    private Long sort;

    /**
     * 是否首单（Y：是，N：否）
     */
    @ExcelProperty(value = "是否首单", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "Y=是,N=否")
    private String firstOrder;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 可用最优惠的优惠卷
     */
    private ZtUserCouponVo ztUserCouponVo;

    /**
     * 可用优惠卷数量
     */
    private int ZtUserCouponCount;

}
